
import {
    // 创建路由的api
    createRouter,
    // 创建路由的历史模式
    createWebHashHistory
} from 'vue-router'
const routes = [
    {
        path: '/',
        redirect: '/menus'

    },
    {
        name: 'menus',
        path: '/menus',
        component: () => import('@/views/menus/index.vue'),
        children: [
            {
                name: 'componentsProp',
                path: '/componentsProp',
                component: () => import('@/views/componentsProp.vue')
            },
            {
                name: 'h',
                path: '/render_h',
                component: () => import('@/views/vueHighApi/render/h.vue')
            },
            {
                name: 'renderToString',
                path: '/server_renderToString',
                component: () => import('@/views/vueHighApi/server/renderToString.vue')
            },
        ]

    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router